import { get } from "../utils/request";

/**
 * 获取列表
 * @param {*} page 
 * @returns
 */
export const loadProductsAPI = (page = 1) => get("/api/v1/products", { page });

/**
 * 根据id获取一个
 * @param {*} id
 * @returns
 */
export const loadProductByIdAPI = (id) => get("/api/v1/products/" + id);
